
import { Service, Inject } from 'typedi';
import { res } from '@/utils/jsonResult';
import { CommentParams } from '@/model/request/Comment';
import { Token } from '@/m_req/Token'
import { TaghdService } from '@/service/admin/TaghdService';
import { TaghdDao } from '@/dao/admin/TaghdDao';
import { Tag } from '@/entity/Tag';
//后端标签
@Service()
export class TaghdServiceImpl implements TaghdService {

  @Inject()
  TaghdDao!: TaghdDao   

  //标签添加
  async Taghdadd(Promise: {tag_title:string}): Promise<res<null>> {
    return this.TaghdDao.Taghdadd(Promise)
  }

  


  //标签删除
  async Taghddelete(Promise: {tag_id:number,tag_title:string}): Promise<res<null>> {
    return this.TaghdDao.Taghddelete(Promise)
  }

  

  async Taghdupdata(Promise: {tag_id:number,tag_title:string}): Promise<res<null>> {
    return this.TaghdDao.Taghdupdata(Promise)
  }

  

  async Taghdselect(Promise:{page:number}): Promise<res<null>> {
    return this.TaghdDao.Taghdselect(Promise)
  }
  

  async Taghdqueries(Promise:{text:string}): Promise<res<Tag>> {
    return this.TaghdDao.Taghdqueries(Promise)
  }
}